package org.komarichin.google.search;

import java.util.ArrayList;
import java.util.List;

/**
 * User: Mykhaylo Komarichyn
 * Date: 28.01.2010
 * Time: 11:27:48
 */
public class Cursor {
    private List<Pages> pages = new ArrayList<Pages>();
    private String estimatedResultCount;
    private long currentPageIndex;
    private String moreResultsUrl;

    public List<Pages> getPages() {
        return pages;
    }

    public void setPages(List<Pages> pages) {
        this.pages = pages;
    }

    public String getEstimatedResultCount() {
        return estimatedResultCount;
    }

    public void setEstimatedResultCount(String estimatedResultCount) {
        this.estimatedResultCount = estimatedResultCount;
    }

    public long getCurrentPageIndex() {
        return currentPageIndex + 1;
    }

    public void setCurrentPageIndex(long currentPageIndex) {
        this.currentPageIndex = currentPageIndex;
    }

    public String getMoreResultsUrl() {
        return moreResultsUrl;
    }

    public void setMoreResultsUrl(String moreResultsUrl) {
        this.moreResultsUrl = moreResultsUrl;
    }
}
